<?php
/**
 * 商户端---工作台管理
 */

namespace app\store\controllers\desk;

use App\store\controllers\StoreBaseController;


class DeskController extends StoreBaseController
{

    private  $thisClass = 'Desk';

    public function index()
    {
        $data = [];
        return successJson('ok', $data);
    }


    /**
     * 商户信息
     */
    public function storeInfo()
    {
        $storeId = request()->input('s_id', 0);

        //获取数据
        $data = self::getStoreData($this->thisClass, 'storeInfo');

        return successJson('ok', $data);
    }

    /**
     * 营业开关
     */
    public function isOpen()
    {
        $storeId = request()->input('s_id', 0);

        //获取数据
        $data = self::getStoreData($this->thisClass, 'isOpen');

        return successJson('ok', $data);
    }

    /**
     * 成交金额
     */
    public function businessInfo()
    {
        $storeId = request()->input('s_id', 0);

        //获取数据
        $data = self::getStoreData($this->thisClass, 'businessInfo');

        return successJson('ok', $data);
    }

    /**
     * 交易概况
     */
    public function  transactionOverview ()
    {
        $couponId = request()->input('c_id', 0);

        //获取数据
        $data = self::getStoreData($this->thisClass, 'transactionOverview');

        return successJson('ok', $data);
    }
}

